<form id="frm_contact_edit" method="POST" action="<?php echo $save_action; ?>">
    <?php $this->load->view('site/contact/message'); ?>
    <input id="entity_id" type="hidden" name="id" value="<?php echo $contact->id; ?>" />
    <div class="clearfix auto_height mb_10">
        <?php $this->load->view('admin/site/contact/buttons'); ?>
    </div>
    <div class="form_block">
        <div class="block_header">
            Contact Message
        </div>
        <div class="block_content">
            <table cellpadding="0px" cellspacing="0px">
                <tr>
                    <td class="frm_label">Name</td>
                    <td class="frm_field">
                        <p><?php echo $contact->name ?></p>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">Email</td>
                    <td class="frm_field">
                        <p><?php echo $contact->email ?></p>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">Subject</td>
                    <td class="frm_field">
                        <p><?php echo $contact->subject ?></p>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">Message</td>
                    <td class="frm_field">
                        <p><?php echo $contact->message ?></p>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">IP Address</td>
                    <td class="frm_field">
                        <p><?php echo $contact->ip; ?></p>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">Sent At</td>
                    <td class="frm_field">
                        <p><?php echo (date('h:i, d/m/Y', $contact->sent_at)); ?></p>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
<script type="text/javascript">
    $(".active_item").click(function() {
        var item = $(this).attr("item"); 
        $(item).trigger("click");
        return false;
    });
</script>